package com.carkeeper.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.carkeeper.dto.DepartmentDTO;
import com.carkeeper.pojo.DepartmentPO;

import java.util.List;

public interface DepartmentService{
    boolean create(DepartmentPO departmentPO);
    boolean update(DepartmentPO departmentPO);
    boolean delete(long departmentId);
    Page<DepartmentPO> query(String code,String name,long page,long pageSize);
    boolean has(String code);
    DepartmentPO getById(Long id);
    List<DepartmentDTO> findAll(List<Long> ids);
}
